package cas;

import gov.nasa.worldwind.geom.LatLon;

public class Vektor {
	private double x;
	private double y;
	
	public Vektor(LatLon coor1, LatLon coor2, double time){
		x = (coor2.getLongitude().getDegrees()-coor1.getLongitude().getDegrees())/time;
		y = (coor2.getLatitude().getDegrees()-coor1.getLatitude().getDegrees())/time;
	}
	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	public double getLength(){
		return Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
	}
}
